package org.summer.lawyer.domain.vo.legaldocument;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.summer.lawyer.domain.LegalDocument;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 *
 */
@Data
@AutoMapper(target = LegalDocument.class)
public class LegalDocumentCreateVo implements Serializable {


    @Serial
    private static final long serialVersionUID = 3088346675154252291L;

    /**
     * 协议ID
     */
    @Schema(title = "id", type = "Long", description = "协议ID")
    private Long id;

    /**
     * 文档类型，(1=隐私政策条款|2服务条款)
     */
    @Schema(title = "docType", type = "Long", description = "文档类型，(1=隐私政策条款|2服务条款)")
    private String docType;

    /**
     * 文档标题
     */
    @Schema(title = "title", type = "String", description = "文档标题")
    private String title;

    /**
     * 文档内容
     */
    @Schema(title = "docContent", type = "String", description = "文档内容")
    private String docContent;

    /**
     *  文档版本，用于标识文档的当前版本，方便跟踪变更
     */
    @Schema(title = "docContent", type = "String", description = "文档版本")
    private String version;

    /**
     * 生效时间
     */
    @Schema(title = "createTime", type = "Date", description = "生效时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
}
